package com.model.dome1;


import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class testyx {
    public static void main(String[] args) {
        LocalDate localDate = LocalDate.of(2018, 03, 04);
        System.out.println(localDate);
        //public String format (指定格式)   把一个LocalDateTime格式化成为一个字符串
        DateTimeFormatter pattern = DateTimeFormatter.ofPattern("yyyy年MM月dd日");
        String s = localDate.format(pattern);
        System.out.println(s);
    }
}
